package com.cloud.pole.admin.model.entity;

import java.util.Date;
import javax.persistence.*;

import lombok.Data;

@Table(name = "admin_user")
@Data
public class User {
	
	/**
	 * 用户状态 1：有效 0：无效
	 */
	public static final int USER_STATUS_OK = 1;
	public static final int USER_STATUS_INVALID = 0;
	
	
    @Id
    @Column(name = "user_id")
    private Integer userId;

    private String username;

    private String password;

    private String name;

    private String birthday;

    private String address;

    @Column(name = "mobile_phone")
    private String mobilePhone;

    @Column(name = "tel_phone")
    private String telPhone;

    private String email;

    private String sex;

    private Integer type;
    
    private Integer status;
    
    private String description;

    @Column(name = "crt_time")
    private Date crtTime;

    @Column(name = "crt_user")
    private String crtUser;

    @Column(name = "crt_name")
    private String crtName;

    @Column(name = "crt_host")
    private String crtHost;

    @Column(name = "upd_time")
    private Date updTime;

    @Column(name = "upd_user")
    private String updUser;

    @Column(name = "upd_name")
    private String updName;

    @Column(name = "upd_host")
    private String updHost;

    private String attr1;

    private String attr2;

    private String attr3;

    private String attr4;

    private String attr5;

    private String attr6;

    private String attr7;

    private String attr8;

}